import Vue from 'vue'
import App from './App.vue'
import router from './router'
import '@/styles/iconfont.css'
import '@/styles/reset.css'

// 引入vux相关组件
// import { XButton } from 'vux'
// Vue.component('x-button', XButton)

Vue.config.productionTip = false
Vue.filter('ctime', function (timeStr) {
  let timeObj = new Date(timeStr)
  let y = timeObj.getFullYear()
  let m = timeObj.getMonth() + 1
  let s = timeObj.getDate()
  return y + '/' + m + '/' + s
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
